import request from './request'
//加载文件树数据
export const loadFolderTreeApi = () => {
    return request({
        url: '/api/init/loadFolderTree',
        method: 'get'
    })
}
//加载文件列表数据
export const getcurrentFileList = () => {
    return request({
        url: '/api/init/currentFileList',
        method: 'get'
    })
}
//上传文件
export const uploadFile = (data) => {
    return request({
        url: '/api/file/upload',
        method: 'post',
        data,
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}
